import request from "@/utils/request"
enum API {
    SINGID = '/song/url',
    ALLIST = '/album',
    SINGDETAIL = '/song/detail',
    TRACKLIST = '/playlist/track/all'
}

export const getSingUrl = (id: number) => request.get<any, any>(`${API.SINGID}?id=${id}`)
export const getAlList = (id:number)=>request.get<any,any>(`${API.ALLIST}?id=${id}`)
export const getSingDetail = (ids:number)=>request.get<any,any>(`${API.SINGDETAIL}?ids=${ids}`)
export const getTrackList = (id:number,limit:number)=>request.get<any,any>(`${API.TRACKLIST}?id=${id}&limit=${limit}`)